import '@/mock/searchMock'
import ajax from '@/utils/request'

// 获取history
export function getSearchHistoryFn(){
    return ajax({
        url: '/api/search/history',
        method: 'post',
    })
}

// 获取猜你想搜
export function getRecommendSearchFn(){
    return ajax({
        url: '/api/home/history/recommend_search',
        method: 'post'
    })
}

// 删除单挑搜索记录
export function delSearchHistoryFn({ id }){
    return ajax({
        url: '/api/search/delHistory',
        method: 'post',
        data : { id }
    })
}